﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AB5 RID: 2741
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MainMission : IMessage<MainMission>, IMessage, IEquatable<MainMission>, IDeepCloneable<MainMission>, IBufferMessage
	{
		// Token: 0x17002293 RID: 8851
		// (get) Token: 0x06007A92 RID: 31378 RVA: 0x001476E7 File Offset: 0x001458E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MainMission> Parser
		{
			get
			{
				return MainMission._parser;
			}
		}

		// Token: 0x17002294 RID: 8852
		// (get) Token: 0x06007A93 RID: 31379 RVA: 0x001476EE File Offset: 0x001458EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MainMissionReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002295 RID: 8853
		// (get) Token: 0x06007A94 RID: 31380 RVA: 0x00147700 File Offset: 0x00145900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MainMission.Descriptor;
			}
		}

		// Token: 0x06007A95 RID: 31381 RVA: 0x00147707 File Offset: 0x00145907
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MainMission()
		{
		}

		// Token: 0x06007A96 RID: 31382 RVA: 0x0014771C File Offset: 0x0014591C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MainMission(MainMission other) : this()
		{
			this.id_ = other.id_;
			this.customValueList_ = other.customValueList_.Clone();
			this.status_ = other.status_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007A97 RID: 31383 RVA: 0x00147769 File Offset: 0x00145969
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MainMission Clone()
		{
			return new MainMission(this);
		}

		// Token: 0x17002296 RID: 8854
		// (get) Token: 0x06007A98 RID: 31384 RVA: 0x00147771 File Offset: 0x00145971
		// (set) Token: 0x06007A99 RID: 31385 RVA: 0x00147779 File Offset: 0x00145979
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17002297 RID: 8855
		// (get) Token: 0x06007A9A RID: 31386 RVA: 0x00147782 File Offset: 0x00145982
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MissionCustomValue> CustomValueList
		{
			get
			{
				return this.customValueList_;
			}
		}

		// Token: 0x17002298 RID: 8856
		// (get) Token: 0x06007A9B RID: 31387 RVA: 0x0014778A File Offset: 0x0014598A
		// (set) Token: 0x06007A9C RID: 31388 RVA: 0x00147792 File Offset: 0x00145992
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x06007A9D RID: 31389 RVA: 0x0014779B File Offset: 0x0014599B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MainMission);
		}

		// Token: 0x06007A9E RID: 31390 RVA: 0x001477AC File Offset: 0x001459AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MainMission other)
		{
			return other != null && (other == this || (this.Id == other.Id && this.customValueList_.Equals(other.customValueList_) && this.Status == other.Status && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007A9F RID: 31391 RVA: 0x0014780C File Offset: 0x00145A0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			num ^= this.customValueList_.GetHashCode();
			if (this.Status != MissionStatus.MissionNone)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007AA0 RID: 31392 RVA: 0x00147878 File Offset: 0x00145A78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007AA1 RID: 31393 RVA: 0x00147880 File Offset: 0x00145A80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007AA2 RID: 31394 RVA: 0x0014788C File Offset: 0x00145A8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Status != MissionStatus.MissionNone)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.Status);
			}
			this.customValueList_.WriteTo(ref output, MainMission._repeated_customValueList_codec);
			if (this.Id != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007AA3 RID: 31395 RVA: 0x001478F8 File Offset: 0x00145AF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			num += this.customValueList_.CalculateSize(MainMission._repeated_customValueList_codec);
			if (this.Status != MissionStatus.MissionNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007AA4 RID: 31396 RVA: 0x00147964 File Offset: 0x00145B64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MainMission other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this.customValueList_.Add(other.customValueList_);
			if (other.Status != MissionStatus.MissionNone)
			{
				this.Status = other.Status;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007AA5 RID: 31397 RVA: 0x001479C5 File Offset: 0x00145BC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007AA6 RID: 31398 RVA: 0x001479D0 File Offset: 0x00145BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 66U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Id = input.ReadUInt32();
						}
					}
					else
					{
						this.customValueList_.AddEntriesFrom(ref input, MainMission._repeated_customValueList_codec);
					}
				}
				else
				{
					this.Status = (MissionStatus)input.ReadEnum();
				}
			}
		}

		// Token: 0x04002EDD RID: 11997
		private static readonly MessageParser<MainMission> _parser = new MessageParser<MainMission>(() => new MainMission());

		// Token: 0x04002EDE RID: 11998
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002EDF RID: 11999
		public const int IdFieldNumber = 11;

		// Token: 0x04002EE0 RID: 12000
		private uint id_;

		// Token: 0x04002EE1 RID: 12001
		public const int CustomValueListFieldNumber = 8;

		// Token: 0x04002EE2 RID: 12002
		private static readonly FieldCodec<MissionCustomValue> _repeated_customValueList_codec = FieldCodec.ForMessage<MissionCustomValue>(66U, MissionCustomValue.Parser);

		// Token: 0x04002EE3 RID: 12003
		private readonly RepeatedField<MissionCustomValue> customValueList_ = new RepeatedField<MissionCustomValue>();

		// Token: 0x04002EE4 RID: 12004
		public const int StatusFieldNumber = 6;

		// Token: 0x04002EE5 RID: 12005
		private MissionStatus status_;
	}
}
